package com.wanmait.schedule.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 材料表
 * </p>
 *
 * @author wanmait
 * @since 2022-03-02
 */
@lombok.Data
@Accessors(chain = true)
public class Data {

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 原始文件名字
     */
    private String name;

    /**
     * 硬盘路径
     */
    private String location;

    /**
     * 文件类型
     */
    private String type;

    /**
     * 工作日志id
     */
    private Integer journalId;

    @TableField(exist = false)
    private Journal journal;

    /**
     * 任务id
     */
    private Integer taskId;

    @TableField(exist = false)
    private Task task;
    /**
     * 上传时间
     */
    private LocalDateTime pubTime;

    /**
     * 上传用户
     */
    private Integer companyUserId;

    @TableField(exist = false)
    private CompanyUser companyUser;
}
